import request from '@/utils/request'

// 上传图片
export function uploadPhoto(data) {
  return request({
    url: '/manage/rource/uploadPhoto',
    method: 'post',
    data
  })
}

// 根据字典类型查询字典数据信息
export function getDicts(linkurl) {
  return request({
    url: linkurl,
    method: 'get'
  })
}

//获取城市 
export function getCitys(params) {
  return request({
    url: '/manage/index/city',
    method: 'get',
    params
  })
}
//获取地区
export function getRegions(params) {
  return request({
    url: '/manage/index/area',
    method: 'get',
    params
  })
}
